import http from '@/../src/api/http.js'

export function getWarehouseByRole() {
  return http.post('api/Wms_Warehouse/getPageData', {
    rows: 9999,
  }).then(r => {
    return r.rows.map(i => {
      return {
        key: i.WarehouseId,
        value: i.WarehouseCode + ' ' + i.WarehouseName
      }
    })
  })
}
